<?php
include('config.php');
?>
<html>
<head>
    <meta charset="utf-8">
    <title>@中学生站长联盟 认证系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/bootstrap.css" rel="stylesheet">
<script type="text/javascript"> 
if(window!=parent) 
parent.location.href='<?php echo XBASE;?>noiframe'; 
</script>
    <!--[if lt IE 9]>
      <script src="//cdnjs.bootcss.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
    <![endif]-->
	<style type="text/css">
      body {
		font-family:Microsoft Yahei,Simhei !important;
        padding-top: 20px;
        padding-bottom: 40px;
      }

      .container-narrow {
        margin: 0 auto;
        max-width: 1024px;
      }
    </style>
	</head>
  <body>
    <div class="container-narrow">

      <div class="masthead">
        <ul class="nav nav-pills pull-right">
		<li class="active"><a href="/">首页</a></li>
		<li class=""><a href="http://www.zxsblog.com">联合博客</a></li>
		<li class=""><a href="http://123.zxsblog.com">联盟导航</a></li>
		<li class=""><a href="http://www.zxsblog.com/validator-js">获取JS代码</a></li>
        </ul>
        <h3 class="muted">中学生站长联盟</h3>
      </div>

      <hr>
	  <div>
<?php
$zhengze = "{" . $pathinfo ."}";
@$ref = $_SERVER['HTTP_REFERER'];
if(empty($pathinfo)){
?>
<h2>欢迎使用@中学生站长联盟 认证系统~~~</h2>
<div class="alert alert-success">
查一查，看看TA的网站是不是属于中学生站长联盟~
</div>
<form class="form-search" method="get" action="index.php/s/"> 
  <input type="text" name="s" autocomplete="off" style="height:50px;width:100%;font-size:20px;font-family:Microsoft Yahei;" placeholder="系统酱提醒您，在此输入网址哦亲~不用加HTTP哦" ><br/>
  <button class="btn btn-large btn-primary disabled" type="submit" style="cursor: pointer;border-radius: 0px;font-family:Microsoft Yahei;font-size:30px;width:100%;">查一查，全知道</button>
</form>
<?php
}else{
if(!preg_match($zhengze,$ref)){
$is_zxsblog = false;
}elseif(is_zxsblog($pathinfo)==false){
$is_zxsblog = false;
}else{
$is_zxsblog = true;
}
if($is_zxsblog==true){
$row = $zxsblog_data['http://' . $pathinfo]; 

?>
	  <div class="alert alert-success">
恭喜~这是真的中学生站长联盟网站~
</div>
<h2>可信认证</h2><hr/>
站点网址：<?php echo $row['0'];?><br/>
站点名称：<?php echo $row['1'];?><br/>
站点描述：<?php echo $row['2'];?><br/>
站点关键词：<?php echo $row['3'];?><br/>
<?php
}else{
?>
<div class="alert alert-error">
OH,你碰到了骗子！
</div>
<h3>亲、、这是假冒的、、、</h3>
<?php
}
}
?>
</div>

      <hr>

      <div class="footer">
	  <script type="text/javascript" id="zxs_v" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
	  
	  <script type="text/javascript" id="zxs_v" src="f12.js"></script>

        <p>© 中学生站长联盟 快乐家园 2013</p>
      </div>

    </div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="//cdnjs.bootcss.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script src="/bootstrap.js"></script>


</body></html>